<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/inc/taglibs.jsp"%>
<%@ page import="com.alipay.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>支付宝支付--即时支付接口</title>
		<script language="JavaScript">
		function alipayClick(){
			for(var   i=0;   i<alipay_direct.paymethod_1.length;   i++)     
      		{   
          	  if(alipay_direct.paymethod_1[i].checked){
			     alipay_direct.paymethod.value=alipay_direct.paymethod_1[i].value
			  }   
      		} 
			for(var   i=0;   i<alipay_direct.defaultbank_1.length;   i++)     
      		{   
          	  if(alipay_direct.defaultbank_1[i].checked){
			     alipay_direct.defaultbank.value=alipay_direct.defaultbank_1[i].value
			  }   
      		} 
		}
	    </script>
	</head>
	<body>
		<form name="alipay_direct" action="${path }/inc/payment/alipay/alipay_pay.jsp" method="post"
			target="_blank">
			<table width="100%" border="0">
				<tr>
					<th colspan="2" scope="col">
						<a href="http://www.alipay.com" target="_blank"><img
								src="${path }/images/payment/alipay/logo.gif" border="0" align='left' /> </a>
					</th>
				</tr>
				<tr>
					<td colspan="2" height="2" bgcolor="#ff7300"></td>
				</tr>
				<tr>
					<td align="right">
						商家订单号：
					</td>
					<td>
						<input type="text" name="out_orderNo" id="out_orderNo" value="${order.orderNo }" readonly />
					</td>
				</tr>
				<tr>
					<td width="16%" align="right">
						商品名称：
					</td>
					<td width="84%">
						<input type="text" name="goodName" id="goodName" value="${goodsName }" readonly>
					</td>
				</tr>
				<tr>
					<td width="16%" align="right">
						商品描述：
					</td>
					<td width="84%">
						<input type="text" name="goodBody" id="goodBody" value="${goodsBody }" readonly>
					</td>
				</tr>
				<tr>
					<td width="16%" align="right">
						订单总价：
					</td>
					<td width="84%">
						<input type="text" name="goodPrice" id="goodPrice" value="${goodsPrice }" readonly>
					</td>
				</tr>
				
				<tr>
					<td width="16%" align="right">
						选择默认支付选项卡：
					</td>
					<td width="84%">
						<table>
							<tr>
								<td>
									<input type="radio" name="paymethod_1" value="directPay"
										checked>
									支付宝余额支付
								</td>
								<td>
									<input type="radio" name="paymethod_1" value="bankPay">
									网银支付
								</td>
								<td>
									<input type="radio" name="paymethod_1" value="cartoon">
									支付宝卡通支付
								</td>
							</tr>
						</table>
						<input type="hidden" name="paymethod" id="paymethod" />
					</td>
				</tr>

				<tr>
					<td width="16%" align="right">
						选择默认银行：
					</td>
					<td width="84%">
						<table>
							<tr>
								<td>
									<input type="radio" name="defaultbank_1" value="CMB" checked>
									<img src="${path }/images/payment/alipay/icon_zsyh_s.gif" border="0" />
								</td>
								<td>
									<input type="radio" name="defaultbank_1" value="ICBCB2C">
									<img src="${path }/images/payment/alipay/icon_zggsyh_s.gif" border="0" />
								</td>
								<td>
									<input type="radio" name="defaultbank_1" value="CCB">
									<img src="${path }/images/payment/alipay/icon_ccb_s.gif" border="0" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="radio" name="defaultbank_1" value="ABC">
									<img src="${path }/images/payment/alipay/icon_abc_s.gif" border="0" />
								</td>
								<td>
									<input type="radio" name="defaultbank_1" value="SPDB">
									<img src="${path }/images/payment/alipay/icon_spdb_s.gif" border="0" />
								</td>
								<td>
									<input type="radio" name="defaultbank_1" value="POSTGC">
									<img src="${path }/images/payment/alipay/POSTGC.jpg" border="0" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="radio" name="defaultbank_1" value="CITIC">
									<img src="${path }/images/payment/alipay/icon_itic_s.gif" border="0" />
								</td>
								<td>
									<input type="radio" name="defaultbank_1" value="CIB">
									<img src='${path }/images/payment/alipay/index_38.gif' border="0" />
								</td>
								<td>
									<input type="radio" name="defaultbank_1" value="GDB">
									<img src="${path }/images/payment/alipay/icon_gdb_s.gif" border="0" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="radio" name="defaultbank_1" value="SDB">
									<img src="${path }/images/payment/alipay/icon_sdb_s.gif" border="0" />
								</td>
								<td>
									<input type="radio" name="defaultbank_1" value="CMBC">
									<img src="${path }/images/payment/alipay/icon_cmbc_s.gif" border="0" />
								</td>
								<td>
									<input type="radio" name="defaultbank_1" value="COMM">
									<img src="${path }/images/payment/alipay/icon_comm_s.gif" border="0" />
								</td>
							</tr>
						</table>
						<input type="hidden" name="defaultbank" id="defaultbank" />
					</td>
				</tr>

				<tr>
					<td align="right">
						操作：
					</td>
					<td>
						<input type="submit" name="submit" value="支付宝即时支付"
							onClick="alipayClick()" />
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
